<?php

return [

    /*
    |--------------------------------------------------------------------------
    | Default Bank Connection Name
    |--------------------------------------------------------------------------
    |
    | Here you may specify which of the bank connections below you wish
    | to use as your default connection for all bank work. Of course
    | you may use many connections at once using the Bank manager.
    |
    */

    'default' => env('BANK_CONNECTION', 'BankOfHangzhou'),

    /*
    |--------------------------------------------------------------------------
    | Bank Connections
    |--------------------------------------------------------------------------
    |
    | Here are each of the bank connections setup for your application.
    | Of course, examples of configuring each bank platform that is
    | supported by Laravel is shown below to make development simple.
    |
    */

    'banks' => [

        'BankOfHangzhou' => [
            'driver' => 'BankOfHangzhou',
            //API_URL = 'http://114.55.246.144/BisOutWeb9000/payCenter/dealReq.srv';
            'api_url' => env('BANK_OF_HANGZHOU_API_URL'),
            'erp_sys_code' => env('BANK_OF_HANGZHOU_ERP_SYS_CODE'),
            'cust_no' => env('BANK_OF_HANGZHOU_CUST_NO'),
            'timeout' => env('BANK_OF_HANGZHOU_TIMEOUT', 30),
            'charset' => env('BANK_OF_HANGZHOU_CHARSET', 'UTF-8'),
            'message_type' => env('BANK_OF_HANGZHOU_MESSAGE_TYPE', '01'),
            'with_header' => env('BANK_OF_HANGZHOU_WITH_HEADER', false),

            // 默认付款人信息
            'payer_corp_name' => env('BANK_OF_HANGZHOU_PAYER_CORP_NAME'),
            'payer_corp_code' => env('BANK_OF_HANGZHOU_PAYER_CORP_CODE'),
            'payer_acc_no' => env('BANK_OF_HANGZHOU_PAYER_ACC_NO'),

            // 默认业务参数
            'defaults' => [
                'pay_flow' => env('BANK_OF_HANGZHOU_PAY_FLOW', '1'),
                'show_detail' => env('BANK_OF_HANGZHOU_SHOW_DETAIL', '1'),
                'default_busi_type' => env('BANK_OF_HANGZHOU_BUSI_TYPE', '1'),
            ],

            // 批处理配置
            'batch_submit_size' => (int) env('BANK_OF_HANGZHOU_BATCH_SUBMIT_SIZE', 50),
            'batch_query_size' => (int) env('BANK_OF_HANGZHOU_BATCH_QUERY_SIZE', 50),

            // 日志配置
            'logging' => [
                'enabled' => env('BANK_OF_HANGZHOU_LOG_ENABLED', true),
                'level' => env('BANK_OF_HANGZHOU_LOG_LEVEL', 'info'),
            ],

            // 测试配置
            'test_account' => env('BANK_OF_HANGZHOU_TEST_ACCOUNT'),
        ],

        // 未来可扩展其他银行配置
        // 'FutureBank' => [
        //     'driver' => 'FutureBank',
        //     'api_url' => env('FUTURE_BANK_API_URL', ''),
        //     'app_id' => env('FUTURE_BANK_APP_ID', ''),
        //     'secret' => env('FUTURE_BANK_SECRET', ''),
        //     // ... 其他配置
        // ],

    ],

];
